@import url(http://fonts.useso.com/css?family=Roboto:400,700);

.description {
	margin-top: 50px;
/* 	text-align: center; */
	color: #999;
	transition: opacity 0.3s ease;
}

.description a {
	color: #4A9DF6;
	text-decoration: none;
}

.btn.is-open ~ .description {
	opacity: 0;
}

.btn {
	display: block;
	position: relative;
	width: 200px;
	height: 80px;
	transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1), height 0.8s
		cubic-bezier(0.23, 1, 0.32, 1), -webkit-transform 0.8s
		cubic-bezier(0.175, 0.885, 0.32, 1.275);
	transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1), height 0.8s
		cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s
		cubic-bezier(0.175, 0.885, 0.32, 1.275);
	-webkit-transform-style: preserve-3d;
	transform-style: preserve-3d;
	-webkit-transform-origin: 50% 50%;
	-ms-transform-origin: 50% 50%;
	transform-origin: 50% 50%;
	text-align: center;
}

.btn-front {
	position: absolute;
	display: block;
	width: 100px;
	height: 50px;
	line-height: 30px;
	background-color: #F44336;
	color: #fff;
	cursor: pointer;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	transition: background 0.15s ease, line-height 0.8s
		cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-front:hover {
	background-color: #f77066;
}

.btn.is-open .btn-front {
	pointer-events: none;
	line-height: 30px;
	
}

.btn-back {
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: #eee;
	color: #222;
	-webkit-transform: translateZ(-1px) rotateX(180deg);
	transform: translateZ(-1px) rotateX(180deg);
	overflow: hidden;
	transition: box-shadow 0.8s ease;
}

.btn-back p {
	margin-top: 27px;
	margin-bottom: 25px;
}

.btn-back button {
	padding: 12px 20px;
	width: 30%;
	margin: 0 5px;
	background-color: transparent;
	border: 0;
	border-radius: 2px;
	font-size: 14px;
	cursor: pointer;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	transition: background 0.15s ease;
}

.btn-back button:focus {
	outline: 0;
}

.btn-back button.yes {
	background-color: #2196F3;
	color: #fff;
}

.btn-back button.yes:hover {
	background-color: #51aef6;
}

.btn-back button.no {
	color: #2196F3;
}

.btn-back button.no:hover {
	background-color: #ddd;
}

.btn.is-open .btn-back {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn[data-direction="left"] .btn-back, .btn[data-direction="right"] .btn-back
	{
	-webkit-transform: translateZ(-1px) rotateY(180deg);
	transform: translateZ(-1px) rotateY(180deg);
}

.btn.is-open {
	width: 400px;
	height: 160px;
}

.btn[data-direction="top"].is-open {
	-webkit-transform: rotateX(180deg);
	transform: rotateX(180deg);
}

.btn[data-direction="right"].is-open {
	-webkit-transform: rotateY(180deg);
	transform: rotateY(180deg);
}

.btn[data-direction="bottom"].is-open {
	-webkit-transform: rotateX(-180deg);
	transform: rotateX(-180deg);
}

.btn[data-direction="left"].is-open {
	-webkit-transform: rotateY(-180deg);
	transform: rotateY(-180deg);
}

